package com.lagou.demo.controller;

import com.lagou.edu.mvcframework.annotations.LagouController;
import com.lagou.edu.mvcframework.annotations.LagouRequestMapping;
import com.lagou.edu.mvcframework.annotations.Security;

@LagouController
@LagouRequestMapping("/all")
public class AllController {

    @LagouRequestMapping("/z")
    @Security({"zhangsan"})
    public String z() {
        return "OK";
    }

    @LagouRequestMapping("/l")
    @Security({"lisi"})
    public String l() {
        return "OK";
    }

    @LagouRequestMapping("/zl")
    @Security({"zhangsan","lisi"})
    public String zl() {
        return "OK";
    }
}
